package gof.builder;

public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void construct(){
        builder.makeTitle("标题");
        builder.makeString("从早上到下午");
        builder.makeItems(new String[]{"早上好","中午好","下午好"});
        builder.makeString("晚上好");
        builder.makeItems(new String[]{"晚上好"});
        builder.close();
    }
}
